<div class="grid_9">

<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>Assign Subjects</h6>
	<table>
		<tbody class="tabular">
			
			
			<?if(!empty($courses)):?>
				<th class="level_edit"></th>
				<?foreach($courses as $courses):?>
					<tr><td><a href="<?=site_url('admin/show_sucl').'/'.$courses->course_id;?>" class="btn">SHOW / EDIT</a></td><td><?=$courses->course_name;?></td></tr>
				<?endforeach;?>
			<?else:?>
				<th></th>
				<tr><td><div class="notice">No data to retrieve</div></td></tr>
			<?endif;?>
		</tbody>
	</table>
</div>
	<br>
	<div class="notice">
		<p>To Add a <b>Course</b> </b><a href="<?=site_url('admin/add_new_course');?>">Click Here</a></p>
		<p>To Add a <b>year level </b><a href="<?=site_url('admin/add_year_level');?>">Click Here</a> </p>
		<p>To Add a <b>Subject   </b><a href="<?=site_url('admin/add_subject');?>">Click Here</a> </p>
	</div>
</div>